package com.CST.service.ys;

import com.CST.dto.ys.YsDepartmentControlDTO;
import com.CST.entity.ys.YsDepartmentControl;
import com.CST.vo.ys.YsDepartmentControlVO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author nmx
 * @since 2023-06-21
 */
public interface YsDepartmentControlService extends IService<YsDepartmentControl> {

    /**
     * 分页查询
     * @param dto 
     * @return
     */
    IPage<YsDepartmentControlVO> listYsDepartmentControlPage(YsDepartmentControlDTO dto);

    /**
     * 导入数据
     *
     * @param file 文件
     */
    void importExcelYsDepartmentControl(MultipartFile file) throws ClassNotFoundException;

    /**
     * 导出数据
     *
     * @param response response
     * @param dto
     */
    void exportExcelYsDepartmentControl(HttpServletResponse response,YsDepartmentControlDTO dto);

    /**
     * 导出模板
     *
     * @param response response
     */
    void exportExcelYsDepartmentControlDemo(HttpServletResponse response);
}
